package xyz.bali16.application.model.oauthclient;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Set;

@Data
@ApiModel("Token获取参数")
public class OauthClientTokenParam {
    /**
     * grantType
     */
    @ApiModelProperty(name = "grantType", value = "授权模式", required = true)
    @NotEmpty(message = "授权模式")
    private String grantType;


    /**
     * 客户端申请的权限范围
     */
    @ApiModelProperty(name = "scope", value = "客户端申请的权限范围", required = true)
    @NotEmpty(message = "权限范围不能为空")
    private String scope;

    /**
     * 客户端ID
     */
    @ApiModelProperty(name = "clientId", value = "客户端id", required = true)
    @NotEmpty(message = "客户端id不能为空")
    private String clientId;

    /**
     * 客户端秘钥
     */
    @ApiModelProperty(name = "clientSecret", value = "秘钥")
    private String clientSecret;


    /**
     * 用户名
     */
    @ApiModelProperty(name = "username", value = "用户名", required = true)
    @NotEmpty(message = "用户名不能为空")
    private String username;


    /**
     * 用户密码
     */
    @ApiModelProperty(name = "password", value = "用户密码", required = true)
    @NotEmpty(message = "用户密码不能为空")
    private String password;



}
